package cn.gson.crm.controller.potential;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.gson.crm.controller.BaseServlet;
import cn.gson.crm.model.dao.StudentDao;

/**
 * 删除录入的学员
 */
@WebServlet("/student/delete")
public class StudentDelete extends BaseServlet {
	private static final long serialVersionUID = 1L;
	private StudentDao stuDao = new StudentDao();
       
   @Override
   protected void get(HttpServletRequest request, HttpServletResponse response) throws Exception {
	   super.get(request, response);
	   String[] id = request.getParameterValues("sid");
	   
	   for (String sid : id) {
			stuDao.stuDeleteById("删除","未分配", Integer.parseInt(sid));
	   }
	   redirect("potential");
   }	
   
}
